package com.myjavalab.util;

public class DataUtil {
	public static int[] getNumber(int max, int size){
		int[] arr = new int[size];		
		for(int i = 0; i < size; i++) {
			arr[i] = (int)(Math.random()*max);
		}
		return arr;
	}
	
	public static void swap(int[] ary, int i, int j) {
		int tmp = ary[j];
		ary[j] = ary[i];
		ary[i] = tmp;
	}
}
